package icu.d4peng.cloud.user.request;

import com.alibaba.fastjson.JSON;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author d4peng
 * @version 1.0.0
 * @date 2022-01-01 10:29
 * @description CaptchaRequest:验证码请求
 */
public class CaptchaRequest implements Serializable {
    /**
     * 用户名
     */
    @NotBlank
    private String username;

    public String getUsername() {
        return username;
    }

    public CaptchaRequest setUsername(String username) {
        this.username = username;
        return this;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
